﻿
<!DOCTYPE html>
<html lang="zh-CN">
<style>
#t1{
    height: 35px;
}
th,td{
    text-align: center;
}
</style>


<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/bb214/yieldTable" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="yieldTable" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label >产品型号：</label>
            <g:select name="partName" from="${partNameList}" data-toggle="selectpicker" data-live-search="true" optionKey="PART_NAME" optionValue="PART_NAME" value="${partName}" noSelection="['':'ALL']" />&nbsp;
            <label >组装批号：</label>
            <g:select name="reserved" from="${reservedList}"   data-toggle="selectpicker"  data-live-search="true" optionKey="RESERVED1" optionValue="RESERVED1" value="${reserved}" noSelection="['':'ALL']" /><br>
            <label>时 间：</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="text" name="start" value="${start}"  data-toggle="datepicker" placeholder="FROM">&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="text" name="end" value="${end}"  data-toggle="datepicker" placeholder="TO">&nbsp;&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/bb214/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <g:if test="${yieldTableList.size() > 0}">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr id="t1">
                <th width="110">时间</th>
                <th width="110">类型</th>
                <th width="110">产品型号</th>
                <th width="110">流程</th>
                <th width="110">调度单号</th>
                <th width="110">成膜批号</th>
                <th width="110">组装批号</th>
                <th width="110">封装批号</th>
                <th width="110">MES批号</th>
                <th width="110">投片数量</th>
                <th width="110">出片数量</th>
                <th width="110">成品率</th>
                <th width="110">成品率标准</th>
                <th width="110">成品率差额</th>
                <th width="110">成本价</th>
                <th width="110">损失额</th>
                <th width="110">损失率</th>
                <th width="110">损失率标准</th>
                <th width="110">损失率差额</th>
                <th width="110">成品单价</th>
            </tr>
            </thead>
            <tbody>
            <g:each in="${yieldTableList}" status="i" var="TableInstance">
                <tr >
                    <td>${TableInstance.TIME.format('yyyy-MM-dd HH:mm:ss')}</td>
                    <td>${TableInstance.PART_TYPE}</td>
                    <td>${TableInstance.PART_NAME}</td>
                    <td>${TableInstance.PROCESS}</td>
                    <td>${TableInstance.WO_ID}</td>
                    <td>${TableInstance.CUSTOMER_ORDER}</td>
                    <td>${TableInstance.CUSTOMER_PART_ID}</td>
                    <td>${TableInstance.CUSTOMER_CODE}</td>
                    <td>${TableInstance.LOT_ID}</td>
                    <td>${TableInstance.TRACK_IN_MAIN_QTY}</td>
                    <td>${TableInstance.TRACK_OUT_MAIN_QTY}</td>
                    <td>${TableInstance.PERCET_QTY}</td>
                    <td>${TableInstance.NORM}</td>
                    <td>${TableInstance.YIELD_GAP}</td>
                    <td>${TableInstance.COST_PRICE}</td>
                    <td>${TableInstance.DEFICIT}</td>
                    <td>${待定}</td>
                    <td>${TableInstance.LOSS_RATE_STANDARD}</td>
                    <td>${待定}</td>
                    <td>${TableInstance.PRODUCT_PRICE}</td>
                </tr>
            </g:each>
            </tbody>
        </table>
    </g:if>
    <g:else>
        <g:render template="../template/emptyPanel" />
    </g:else>
</div>
<g:render template="../template/pagination" />
<html>
